package valuecomusa.fijibus.eticket.ws;

/**
 * Created with IntelliJ IDEA.
 * User: fireman
 * Date: 5/24/13
 * Time: 3:32 PM
 * To change this template use File | Settings | File Templates.
 */
public class VoucherValue
{
    public String VoucherType; //Red, Yellow, Blue
    public double VoucherAmount;//Discount amount

    public String toJson()
    {
        String x = "{";
        x += "\"VoucherType\":";
        if(VoucherType == null)
            x += "null,";
        else
            x += String.format("\"%s\",", VoucherType);
        x += "\"VoucherAmount\":" + VoucherAmount;
        x += "}";

        return x;
    }
}
